public class Demofs7 {
    public static int leafSize = 0;
    void getLeafNodeCount1(BinaryTree.TreeNode root) {
        if(root.left==null && root.right == null){
            leafSize++;
            return;
        }
        getLeafNodeCount1(root.left);
        getLeafNodeCount1(root.right);
    }
}
